package cn.stylefeng.guns.modular.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
    * 设备厂家信息表，需要同步给IOT redis
    */
@ApiModel(value="cn-stylefeng-guns-modular-business-entity-DeviceBrand")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "app_device_brand")
public class DeviceBrand {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键id")
    private Integer id;

    /**
     * 每个厂家，单独分配一个，对应iot项目里面的appid
     */
    @TableField(value = "devcie_brand_id")
    @ApiModelProperty(value="每个厂家，单独分配一个，对应iot项目里面的appid")
    private String devcieBrandId;

    /**
     * 商户名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value="商户名称")
    private String name;

    /**
     * 32位 hash 字符串
     */
    @TableField(value = "secret")
    @ApiModelProperty(value="32位 hash 字符串")
    private String secret;

    /**
     * 状态 1启用   0禁用 ，2 是特殊
     */
    @TableField(value = "status")
    @ApiModelProperty(value="状态 1启用   0禁用 ，2 是特殊")
    private Integer status;

    @TableField(value = "remarks")
    @ApiModelProperty(value="")
    private String remarks;

    /**
     * 新增时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="新增时间")
    private Integer createTime;

    /**
     * 最后更新时间
     */
    @TableField(value = "last_time")
    @ApiModelProperty(value="最后更新时间")
    private Date lastTime;

    public static final String COL_ID = "id";

    public static final String COL_DEVCIE_BRAND_ID = "devcie_brand_id";

    public static final String COL_NAME = "name";

    public static final String COL_SECRET = "secret";

    public static final String COL_STATUS = "status";

    public static final String COL_REMARKS = "remarks";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_LAST_TIME = "last_time";
}